package priv.lirenhe.javabase.charpter02;

public class Chapter02 {

	// 鍛藉悕瑙勫垯
	private String str01;
	private String str;
	private String _str;
	private String $str;
	// 椹煎嘲寮�
	private String strHelloWorld;

	// 瀛楃鍜屽瓧绗︿覆
	private char c = 'x';
	private char cc = 'x';
	private String s = "xxxx";
	private String s_ = "x";
	// 绌哄瓧绗︿覆锛岀┖鏍煎瓧绗︿覆 瀛楃涓蹭负绌�
	private String ss = "";
	private String sss = " ";
	private String ssss = null;

	// float鍜宒ouble鍚庣紑
	private float f = 0.0f;
	private double d = 0.0d;

	// 寮哄埗绫诲瀷杞崲
	private int in = 0;
	private short sh = (short) in;

	public Chapter02() {
		System.out.println("鏋勯�犳柟娉�-鐢ㄤ簬鍒濆鍖栦粠鑰岀敓鎴愬璞�");
	}

	/**
	 * 鏂囨。娉ㄩ噴 鍗曡娉ㄩ噴 澶氳娉ㄩ噴
	 * 
	 * @param args
	 */
	public static void main(String[] args) {
		// 瀛楃涓叉嫾鎺ヤ互鍙婅浆鍨嬩负瀛楃涓�
		System.out.println("xxx" + "===");
		int i = 0;
		System.out.println(i + "xxx");
		System.out.println(i + "");

		boolean flag = false;
		if (flag) {
			int a = 0;
			System.out.println(i);
		} else if (flag) {

		} else {

		}
		// 涓夊厓杩愮畻
		int xx = 0;
		int yy = 1;
		int max;
		if (xx > yy) {
			max = xx;
		} else {
			max = yy;
		}
		//System.out.println(xx>yy ? max =xx : max != yy);

		// switch缁撴瀯
		int y = 1;
		switch (y) {
		case 1: //
		case 2://
		default://
		}

		// 涓庝互鍙婄煭璺笌
		int x;
		int a = 0;
		int b = 0;
		boolean t;
		t = a > 0 & b++ > 0;
		System.out.println(t);
		System.out.println("涓庯紝涓よ竟閮借璁＄畻=" + b);

		a = 0;
		b = 0;
		t = a > 0 && b++ > 0;
		System.out.println(t);
		System.out.println("鐭矾涓庯紝鍙绠楀乏杈�=" + b);

		System.out.println("------------------------------");

		a = 0;
		b = 1;
		t = a++ > 0 && b > 0;
		System.out.println(t);
		System.out.println("鍚庤嚜澧�=" + a);

		a = 0;
		b = 1;
		t = ++a > 0 && b > 0;
		System.out.println(t);
		System.out.println("鍏堣嚜澧�=" + a);

		
		for(int ii=0;ii<5;ii++){
			//xxxx
			//continue;
			break;
		}
		boolean flagg = false;
		while(flagg){
			
		}
		
		do{
			
		}while(flagg);
		
		String[] strs = new String[100];
		for(String str : strs){
			System.out.println(str);
		}
		
		Chapter02 obj = new Chapter02();
		obj.returnHelloWorld();
		obj.returnHelloWorld(i);
		obj.returnHelloWorld("");
		
		obj.returnHelloWorld("", i);
		obj.returnHelloWorld(i, "");
		
		// 澹版槑鏁扮粍
		int array_[] = new int[100];
		int[] array = new int[100];
		int[][] biarray = new int[100][100];

	}

	// 鏂规硶閲嶈浇
	public void returnHelloWorld() {
		System.out.println("001");
	}

	public void returnHelloWorld(int i) {
		return ;
	}

	public void returnHelloWorld(String str) {

	}

	public void returnHelloWorld(String str, int i) {

	}
	public void returnHelloWorld(int i ,String str) {
		
	}

}
